package org.lyd.spring.aop.calculator.impl;

import org.lyd.spring.aop.calculator.Calculator;
import org.springframework.stereotype.Component;

/**
 * @Author:
 **/
@Component
public class CalculatorImpl implements Calculator {
    @Override
    public int add(int i, int j) {
        System.out.println("目标方法执行");
        return i+j;
    }

    @Override
    public int sub(int i, int j) {
        return i-j;
    }

    @Override
    public int mul(int i, int j) {
        return i*j;
    }

    @Override
    public int div(int i, int j) {
        return i/j;
    }
}
